﻿@model List<Guan.CMS.Web.ViewModels.Product.ProductViewModel>
@{
    Layout = null;
}
@if (Model.Count>=5)
{
    <div class="content_resize">
        <div class="recommendbar">
            <h2 class="retitle">
                推荐产品</h2>
            <div class="scrollbar">
                <div id="ReLeftBtn" class="leftBtn btn"></div>
                <div id="ReRightBtn" class="rightBtn btn"></div>
                <div class="scrollbox">
                    <ul id="ScrollBox" class="fn-clear">
                        @foreach (var m in Model)
                        {
                            <li>
                                <a href="@Url.Action("Detail",new{m.Id})" target="_blank" title="@m.Name">
                                    <img src="@Url.Content(string.IsNullOrWhiteSpace(m.ImageUrl)?"~/Content/Images/nopic.jpg":m.ImageUrl)" alt="@m.Name" width="150" height="120" />
                                    <span>@m.Name</span>
                                </a>
                            </li>
                        }
                    </ul>
                </div>
            </div>
        </div>
    </div>
}